package JLB_Chapter_07;
// code_07_05
class Computer {
    String screeen = "液晶显示屏";
    void startup() {
        System.out.println("电脑正在开机，请等待.....");
    }
}
public class Pad extends Computer {
    String battery = "5000毫安电池";
    public static void main(String[] args) {
        Computer pc = new Computer();
        System.out.println("computer的屏幕是：" + pc.screeen);
        pc.startup();
        Pad ipad = new Pad();
        System.out.println("Pad的屏幕是：" + ipad.screeen);
        System.out.println("Pad的电池是：" + ipad.battery);
        ipad.startup();
    }
}